﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Chinaer.WCF.Services;

namespace Chinaer.UI.MVC.Controllers
{
    public class DianPuController : Controller
    {
        //
        // GET: /DianPu/

        public ActionResult Index()
        {
            return View();
        }

        public ContentResult GetAllDianPus()
        {
            ChinaerService chinaerService = new ChinaerService();
            List<DTO.DianPuDTO> listDIanPuDTO = chinaerService.GetAllDianPus("");
            return new ContentResult()
            {
                Content = Helper.JsonHelper.CreateJson(listDIanPuDTO)
            };

        }


    }
}
